home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr26
/
netprog.zip
/
NETPROG.TAR
/
rpc.sun
/
timedate
/
date_proc.c
next >
Wrap
C/C++ Source or Header
|
1989-12-17
|
675b
|
38 lines
/*
* dateproc.c - remote procedures; called by server stub.
*/
#include <rpc/rpc.h> /* standard RPC include file */
#include "date.h" /* this file is generated by rpcgen */
/*
* Return the binary date and time.
*/
long *
bin_date_1()
{
static long timeval; /* must be static */
long time(); /* Unix function */
timeval = time((long *) 0);
return(&timeval);
}
/*
* Convert a binary time and return a human readable string.
*/
char **
str_date_1(bintime)
long *bintime;
{
static char *ptr; /* must be static */
char *ctime(); /* Unix function */
ptr = ctime(bintime); /* convert to local time */
return(&ptr); /* return the address of pointer */
}